import React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import './global.less';
import AppRoutes from './routes';
import store from './store';

const rootEle = document.getElementById('app');

if (rootEle) {
  const root = createRoot(rootEle);
  root.render(
    <Provider store={store}>
      <AppRoutes />
    </Provider>
  );
}
